package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.SaleAccount;
import cn.wolfcode.crm.query.SaleItemChartQueryObject;
import cn.wolfcode.crm.util.ProductSaleItemObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SaleAccountMapper {

    int insert(SaleAccount record);

    int updateStatusByBillIdAndProductId(@Param("billId") Long billId, @Param("productId") Long productId);

    /**
     * 查询商品零售统计表的数据
     * @return
     */
    List<ProductSaleItemObject> saleItemChart(SaleItemChartQueryObject qo);


}